Skip to content

ci: add unit tests workflow and fix broken tests#209

Merged
aa1ex merged 1 commit intokaasops:mainfrom
aa1ex:ci/unit-tests-workflow
Nov 24, 2025
Merged

ci: add unit tests workflow and fix broken tests#209
aa1ex merged 1 commit intokaasops:mainfrom
aa1ex:ci/unit-tests-workflow

Conversation

@aa1ex
Copy link
Copy Markdown
Contributor

@aa1ex aa1ex commented Nov 24, 2025

Add GitHub Actions workflow to run unit tests on every PR and push to main:

  • Runs make test which includes manifests generation, formatting, vetting
  • Uploads coverage report as artifact

Fix unit tests to run without real cluster:

  • Set UseExistingCluster: false in envtest (use embedded API server)
  • Fix vector_controller_test.go to properly configure Vector spec and run double reconcile (finalizer + actual work)

Add GitHub Actions workflow to run unit tests on every PR and push to main:
- Runs `make test` which includes manifests generation, formatting, vetting
- Uploads coverage report as artifact

Fix unit tests to run without real cluster:
- Set UseExistingCluster: false in envtest (use embedded API server)
- Fix vector_controller_test.go to properly configure Vector spec
  and run double reconcile (finalizer + actual work)
@aa1ex aa1ex merged commit 1bcdb33 into kaasops:main Nov 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant